/*
 * @Author: your name
 * @Date: 2021-09-07 14:05:29
 * @LastEditTime: 2021-09-07 16:41:59
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \uniapp-cil\src\config\index.js
 */
/* 配置管理 */

const packageJson = require('../../package.json')

let env_var = null

if (process.env.NODE_ENV === 'development') {
    env_var = require('./env.dev.js').default
} else {
    env_var = require('./env.prod.js').default
}

export default {
    appName: packageJson.name,
    webUrl: env_var.webUrl, //域名
    apiUrl: env_var.baseUrl, // 基础路径
    uploadUrl: env_var.uploadUrl, // OSS 路径
    dataName: packageJson.name, // Storage 保存名
    version: packageJson.version // 版本号
}